<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function getMax(r1,r2)
        {
      
          if(r1>r2)
          {
              return r1;
          }
          return r2;

        }
        function getMax3(r1,r2,r3)
        {
              
              if(r1>r2&&r1>r3)
              {
                  return r1;
              }
              if(r2>r1&&r2>r3)
              {
                  return r2;
              }
              return r3;
        }
    </script>
</body>
</html>